package com.hllxd.hism.framework.httprpc.service;

/**
 * author: xiyong.lxy
 * date: 2020-10-24 20:29
 */
public class NTSTATUS {
    public Boolean success;
    public String code;
    public String message;

    public static NTSTATUS SUCCESS_STATUS(String message) {
        NTSTATUS thiz = new NTSTATUS();
        thiz.code = "000";
        thiz.message = message;
        thiz.success = true;
        return thiz;
    }

    public static NTSTATUS SUCCESS_STATUS() {
        NTSTATUS thiz = new NTSTATUS();
        thiz.code = "000";
        thiz.message = "";
        thiz.success = true;
        return thiz;
    }
    public static NTSTATUS ERROR_STATUS(String code, String message) {
        NTSTATUS thiz = new NTSTATUS();
        thiz.code = code;
        thiz.message = message;
        thiz.success = false;
        return thiz;
    }
}
